<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('example', function () {
    return view('example');
});

// 后台路由组
Route::group(['prefix' => 'admin','middleware' => 'auth'], function() {
	Route::get('index', 'Admin\AdminController@index');
	Route::get('adminlist', 'Admin\AdminController@list');
	Route::get('adminrole', 'Admin\AdminController@role');
	Route::get('getRoleList', 'Admin\AdminController@getRoleList');
});

Route::get('/auth/geetest','Auth\AuthController@getGeetest');

Auth::routes();

Route::get('/home', 'HomeController@index');
